﻿@model IEnumerable<Contact>
@{
    Layout = null;    
}
<table class="table table-striped table-bordered">
    <thead>    
        <tr>
            <th>ID</th>
            <th>First Name</th>
            <th>Last Name</th>
            <th>Email Address</th>
            <th>Phone No.</th>
        </tr>        
    </thead>
    <tbody>
        @foreach (var contact in Model)
        { 
            <tr>
                <td>@Ajax.DialogLink(contact.Id, "Update", new { contactId = contact.Id })</td>
                <td>@contact.FirstName</td>
                <td>@contact.LastName</td>
                <td>@contact.EmailAddress</td>
                <td>@contact.PhoneNo</td>               
            </tr>
        }
    </tbody>
</table>